#include "login.h"
#include "ui_login.h"
#include "database.h"
#include <QTimer>
#include <QDateTime>
#include <QThread>
Login::Login(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Login)
{
    ui->setupUi(this);
//    Database *db = new q
    QTimer *t1 = new QTimer(this);

    QDateTime d1 = QDateTime::currentDateTime();
    d1.toString();

    connect(t1,&QTimer::timeout,this,[this]{
        ui->label_10->setText(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss"));
    });

    t1->start(1000);
}

Login::~Login()
{
    delete ui;
}
